#!/bin/sh
set -eu
base=$(CDPATH= cd -P -- "$(dirname -- "$0")" && pwd)
res="$base/../Resources"
if [ -z "${SSL_CERT_FILE:-}" ] && [ ! -r /etc/ssl/cert.pem ] && [ -r "$res/runtime/lib/python3.14/site-packages/pip/_vendor/certifi/cacert.pem" ]; then export SSL_CERT_FILE="$res/runtime/lib/python3.14/site-packages/pip/_vendor/certifi/cacert.pem"; fi
cd "$res/app"
exec "$res/runtime/bin/python3" -E -s -B "$res/app/main.py" "$@"
